#include "stdafx.h"
#include "ContractChecker.h"

namespace RoomFW {

ContractChecker::ContractChecker(bool conjugate, bool isLogged) :
	conjugate_(conjugate),
	isLogged_(isLogged),
	cs_()
{
}

bool ContractChecker::isConjugate() const
{
	return conjugate_;
}

bool ContractChecker::getIsLogged() const
{
	CriticalSectionGuard g(cs_);
	return isLogged_;
}

void ContractChecker::setIsLogged(bool isLogged) const
{
	CriticalSectionGuard g(cs_);
	isLogged_ = isLogged;
}


}
